/* TicketClerk.c
 *	A Program to represent the Ticket Clerk agent in our Movie
 *  Theater simulation.
 *	
 */

#include "syscall.h"

int TicketClerkLock;
int TicketClerkCondition;

void TicketClerkThread() {
	Write("TicketClerk is running.\n", 25, ConsoleOutput);
	TicketClerkLock = CreateLock("TicketClerkLock", 15);
	TicketClerkCondition = CreateCondition("TicketClerkCondition", 20);
	Acquire(TicketClerkLock);
	Wait(TicketClerkCondition, TicketClerkLock);
	Exit(0);
}

int
main()
{
	Fork(TicketClerkThread);
	
	return 0;
}